package com.sanjiahantang.youjiarole.module.goods.beans;


import com.google.gson.Gson;
import com.sanjiahantang.youjiarole.base.BaseBean;
import com.sanjiahantang.youjiarole.module.evaluate.beans.EvaGoodsBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zy on 2017/9/20.
 */

public class GoodsBean extends BaseBean {

    private String data;

    public Data getData() {
        return new Gson().fromJson(data,Data.class);
    }

    public void setData(String data) {
        this.data = data;
    }

    /**
     * <p/>
     * 商品信息
     */
    public static class Data implements Serializable{



        /**
         * 详情轮播图
         */
        private List<Image> imgUrlList;
        /**
         * 评价
         */
        private List<EvaGoodsBean.Item> goodsAppraiseList;
        /**
         * 推荐商品
         */
        private GoodsListBean.Data goodsRecommendList;
        /**
         * 风格
         */
        private List<Attr> mgcList;
        /**
         * 规格
         */
        private List<String> scaleList;
        private double basePrice;
        private String goodsName;
        private int isCollect;
        private int isSale;
        private int mgiId;
        private String styleGoodsId;
        private String detailMemo;
        private double salePrice;
        private String url;
        private int typeGoodsId;
        private String typeGoodsName;
        private int mgcId;
        private String mgcName;
        private String supplyId;
        private String supplyName;
        private String ratio;
        private int soldCount;
        private String unit;

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public int getSoldCount() {
            return soldCount;
        }

        public void setSoldCount(int soldCount) {
            this.soldCount = soldCount;
        }

        public String getRatio() {
            return ratio;
        }

        public void setRatio(String ratio) {
            this.ratio = ratio;
        }

        public String getSupplyId() {
            return supplyId;
        }

        public void setSupplyId(String supplyId) {
            this.supplyId = supplyId;
        }

        public String getSupplyName() {
            return supplyName;
        }

        public void setSupplyName(String supplyName) {
            this.supplyName = supplyName;
        }

        public int getTypeGoodsId() {
            return typeGoodsId;
        }

        public void setTypeGoodsId(int typeGoodsId) {
            this.typeGoodsId = typeGoodsId;
        }

        public String getTypeGoodsName() {
            return typeGoodsName;
        }

        public void setTypeGoodsName(String typeGoodsName) {
            this.typeGoodsName = typeGoodsName;
        }

        public int getMgcId() {
            return mgcId;
        }

        public void setMgcId(int mgcId) {
            this.mgcId = mgcId;
        }

        public String getMgcName() {
            return mgcName;
        }

        public void setMgcName(String mgcName) {
            this.mgcName = mgcName;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public double getSalePrice() {
            return salePrice;
        }

        public void setSalePrice(double salePrice) {
            this.salePrice = salePrice;
        }

        public String getDetailMemo() {
            return detailMemo;
        }

        public void setDetailMemo(String detailMemo) {
            this.detailMemo = detailMemo;
        }

        public List<Image> getImgUrlList() {
            return imgUrlList;
        }

        public void setImgUrlList(List<Image> imgUrlList) {
            this.imgUrlList = imgUrlList;
        }

        public List<EvaGoodsBean.Item> getEvaluateList() {
            return goodsAppraiseList;
        }

        public void setEvaluateList(List<EvaGoodsBean.Item> evaluateList) {
            this.goodsAppraiseList = evaluateList;
        }

        public GoodsListBean.Data getGoodsRecommendList() {
            return goodsRecommendList;
        }

        public void setGoodsRecommendList(GoodsListBean.Data goodsRecommendList) {
            this.goodsRecommendList = goodsRecommendList;
        }

        public List<Attr> getMgcList() {
            return mgcList;
        }

        public void setMgcList(List<Attr> mgcList) {
            this.mgcList = mgcList;
        }

        public List<String> getScaleList() {
            return scaleList;
        }

        public void setScaleList(List<String> scaleList) {
            this.scaleList = scaleList;
        }

        public double getBasePrice() {
            return basePrice;
        }

        public void setBasePrice(double basePrice) {
            this.basePrice = basePrice;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public int getIsCollect() {
            return isCollect;
        }

        public void setIsCollect(int isCollect) {
            this.isCollect = isCollect;
        }

        public int getIsSale() {
            return isSale;
        }

        public void setIsSale(int isSale) {
            this.isSale = isSale;
        }

        public int getMgiId() {
            return mgiId;
        }

        public void setMgiId(int mgiId) {
            this.mgiId = mgiId;
        }

        public String getStyleGoodsId() {
            return styleGoodsId;
        }

        public void setStyleGoodsId(String styleGoodsId) {
            this.styleGoodsId = styleGoodsId;
        }
    }

    public static class Image implements Serializable{
        private String url;
        private int id;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

    public static class Attr{
        private int mgpiraId;
        private String mgpiValue;
        private int mgpciId;
        private String propertyName;
        private String createTime;
        private int mgiId;
        private int mgpiId;

        public int getMgpiraId() {
            return mgpiraId;
        }

        public void setMgpiraId(int mgpiraId) {
            this.mgpiraId = mgpiraId;
        }

        public String getMgpiValue() {
            return mgpiValue;
        }

        public void setMgpiValue(String mgpiValue) {
            this.mgpiValue = mgpiValue;
        }

        public int getMgpciId() {
            return mgpciId;
        }

        public void setMgpciId(int mgpciId) {
            this.mgpciId = mgpciId;
        }

        public String getPropertyName() {
            return propertyName;
        }

        public void setPropertyName(String propertyName) {
            this.propertyName = propertyName;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getMgiId() {
            return mgiId;
        }

        public void setMgiId(int mgiId) {
            this.mgiId = mgiId;
        }

        public int getMgpiId() {
            return mgpiId;
        }

        public void setMgpiId(int mgpiId) {
            this.mgpiId = mgpiId;
        }
    }

}
